<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <link href="/resource/css/index3.css" rel="stylesheet">
    <script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="/resource/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<h4>订单信息</h4>
   <form:form method="post" enctype="multipart/form-data" action="update" modelAttribute="addtable">
       <table>
           <tr>
               <td>外发单号:</td>
               <td>${waifaid}
                   <form:hidden path="waifaid"></form:hidden></td>
               <td></td>
               <td>外发日期</td>
               <td><form:input path="waifatime" type="date"></form:input></td>
           </tr>
           <tr>
               <td>工号:</td>
               <td>
                   <form:input path="empid"></form:input>
               </td>
               <td></td>
               <td>姓名:</td>
               <td>
                   <form:input path="empname"></form:input>
               </td>
           </tr>
           <tr>
               <td>备注:</td>
               <td colspan="4">
                   <form:textarea path="beizhu"></form:textarea>
               </td>
           </tr>
           <tr>
               <td colspan="5"><h4>商品信息</h4></td>
           </tr>
           <tr>
               <td>商品编号:</td>
               <td><form:input path="shopid"></form:input>

               </td>
               <td></td>
               <td>商品名称:</td>
               <td><form:select path="shopname">
                    <form:option value="">请选择</form:option>
                    <form:option value="电阻">电阻</form:option>
                    <form:option value="活塞">活塞</form:option>
                    <form:option value="离子火花器">离子火花器</form:option>
                   <form:option value="进程控制器">离子火花器</form:option>
               </form:select>

               </td>
           </tr>
           <tr>
               <td>型号:</td>
               <td><form:input path="xinghao"></form:input></td>
               <td></td>
               <td>规格:</td>
               <td><form:input path="guige"></form:input></td>
           </tr>
           <tr>
               <td>单价:</td>
               <td><form:input path="price"></form:input></td>
               <td></td>
               <td>数量:</td>
               <td><form:input path="num"></form:input>
                   <form:errors path="num" cssStyle="color: red"></form:errors>
               </td>
               </tr>
           <tr>
               <td>金额:</td>
               <td><form:input path="jine"></form:input></td>
           </tr>
           <tr>
               <td colspan="5">
                   <input type="submit" value="修改">
               </td>
           </tr>
       </table>
   </form:form>
</body>


</html>